package Box2D.Dynamics.Controllers
{
	import Box2D.Common.b2Wrapper;
	import Box2D.Dynamics.b2Body;
	
	public class b2ControllerEdge extends b2Wrapper
	{
		public function b2ControllerEdge(wrapper:Object)
		{
			super(wrapper);
		}
		private function wrapPoint(position:int):b2ControllerEdge{
			var p:int = getInt(position);
			if(p!=0)
				return new b2ControllerEdge(p);
			else
				return null;			
		}
		public function get controller():b2Controller{return call('b2ControllerEdge_GetController')}
		public function get body():b2Body{return call('b2ControllerEdge_GetBody')}
		public function get prevBody():b2ControllerEdge{return wrapPoint(8)}
		public function get nextBody():b2ControllerEdge{return wrapPoint(12)}
		public function get prevController():b2ControllerEdge{return wrapPoint(16)}
		public function get nextController():b2ControllerEdge{return wrapPoint(20)}
	}
}